<%@ page import="com.google.appengine.api.users.*" %>
<% 
UserService userService = UserServiceFactory.getUserService();
if (!userService.isUserLoggedIn()) {
	response.sendRedirect(userService.createLoginURL("/"));
	return;
} else if (request.getParameter("logout") != null) {
	response.sendRedirect(userService.createLogoutURL("/"));
	return;
}

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <!--                                                               -->
    <!-- Consider inlining CSS to reduce the number of requested files -->
    <!--                                                               -->
    <link type="text/css" rel="stylesheet" href="FarHorizons.css">

    <!--                                           -->
    <!-- Any title is fine                         -->
    <!--                                           -->
    <title>Far Horizons Web System</title>
    
    <!--                                           -->
    <!-- This script loads your compiled module.   -->
    <!-- If you add any GWT meta tags, they must   -->
    <!-- be added before this line.                -->
    <!--                                           -->
  <link rel="stylesheet" type="text/css" href="http://www.gwt-ext.com/ext/2.0.2/resources/css/ext-all.css"/>

	<script type="text/javascript" language="javascript" src="http://www.gwt-ext.com/ext/2.0.2/adapter/ext/ext-base.js"></script>
       
	<script type="text/javascript" language="javascript" src="http://www.gwt-ext.com/ext/2.0.2/ext-all.js"></script>
      
    <script type="text/javascript" language="javascript" src="farhorizons/farhorizons.nocache.js"></script>
  </head>

  <!--                                           -->
  <!-- The body can have arbitrary html, or      -->
  <!-- you can leave the body empty if you want  -->
  <!-- to create a completely dynamic UI.        -->
  <!--                                           -->
  <body>
  	<stylesheet src="http://www.gwt-ext.com/ext/2.0.2/resources/css/ext-all.css" />
	<script src="http://www.gwt-ext.com/ext/2.0.2/adapter/ext/ext-base.js" />
	<script src="http://www.gwt-ext.com/ext/2.0.2/ext-all.js" />
  
  </body>
</html>
